package org.cc.cloud;

import java.util.Scanner;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;

@SpringBootApplication
@EnableEurekaServer
public class Application {
	protected static final Logger  logger= LoggerFactory.getLogger(Application.class);
    public static void main(String[] args) {
    	logger.info("SpringBoot开始加载");
    	//直接启用
    	new SpringApplicationBuilder(Application.class).web(true).run(args);
    	logger.info("SpringBoot加载完毕");
    	//application1.yml（Eureka服务的相互注册实现集群）文件的启用方式。
    	//Scanner scan=new Scanner(System.in);
    	//String profiles=scan.nextLine();
    	//new SpringApplicationBuilder(Application.class).profiles(profiles).run(args);
    }

}